<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="contentCategoryList.heading" />

<content tag="buttons">
	<%@ include file="include/contentCategoryTreeAction.jspf"%>
</content>
<div class="warning_msg" style="border: 1px solid #8BC8D6;">
	<p><b><fmt:message key="contentCategoryList.tip.1"/>:<br></b></p>
	<p>
		1.&nbsp;<fmt:message key="contentCategoryList.tip.2"/><br>
		2.&nbsp;<fmt:message key="contentCategoryList.tip.3"/>
	</p>
</div>
<div class="tree">
	<div class="tree_wrap">
		<div class="hd"></div>
		<form method="post" action="${ctxPath}/catalog/contentCategory.html">
			<div class="content" id="categoryTree">
					<%@ include file="include/contentCategoryTreeBody.jspf"%>
			</div>
		</form>
		<div class="ft"></div>
	</div>
	
</div>
<div class="tree_r">
	<div id="categoryFormDiv" class="tree_r_wrap">
		<%--load file="/catalog/contentCategoryForm.jsp" --%>
	</div>
</div>


<%-----start:list需要加载的JS ----%>
<c:set var="plugin_tree" value="true" scope="request"/>
<script type="text/javascript" src="${ctxPath}/scripts/probiz/catalog/contentCategoryList.js?rs=${appConfig.rs}"></script>
<%-----end:  list需要加载的JS ----%>

<%-----start:form需要加载的JS ----%>
<c:set var="plugin_upload" value="true" scope="request"/>
<c:set var="plugin_htmlEditor" value="true" scope="request"/>
<c:set var="ui_tabs" value="true" scope="request"/>
<c:set var="ui_dialog" value="true" scope="request"/>
<c:set var="ui_sortable_js" value="true" scope="request"/>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/catalog/contentCategoryForm.js?rs=${appConfig.rs}"></script>
<%-----end:  form需要加载的JS ----%>

<script type="text/javascript">
$j(document).ready(function () {
	__FMTExtend = {
		categoryList_overMaxDepth:"<fmt:message key="categoryList.overMaxDepth"/>",
		contentCategoryDetail_recommendResult_saveFirst:"<fmt:message key="contentCategoryDetail.recommendResult.saveFirst"/>",
		contentCategoryDetail_save_successed:"<fmt:message key="contentCategoryDetail.save.successed"/>",
		contentDetail_recommendResult_none:"<fmt:message key="contentDetail.recommendResult.none"/>",
	    contentDetail_recommendResult_saveFirst:"<fmt:message key="contentDetail.recommendResult.saveFirst"/>",
	    contentForm_adddRecommended_noRepeat:"<fmt:message key="contentForm.adddRecommended.noRepeat"/>",
		contentForm_adddRecommended_noSelf:"<fmt:message key="contentForm.adddRecommended.noSelf"/>"
	
	};
	$j.extend(__FMT, __FMTExtend); 
});	
	
$j(document).ready(function () {
	jCategoryTree = $j('#categoryTree > ul').simpleTree({
		drag:false,
		afterClick:function(node){
			clickTreeItemAction();
		},
		afterDblClick:function(node){
		},
		afterMove:function(destination, source, pos){
		},
		afterAjax:function()
		{
		},
		animate:true
		//,docToFolderConvert:true
	})[0];
	$j("#categoryTree").show();
	
	//默认显示“主页”
	activeTreeItem(jCategoryTree,1);
	editCategoryForm(1);
	
});

</script>

